package com.finalcial.service.impl;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.finalcial.dao.WorkDao;
import com.finalcial.service.WorkService;
/**
 * 我的待办以及我的已办页面
 * @author Lenovo
 *
 */
@Service
public class WorkServiceImpl implements WorkService {
	
	@Autowired
	private WorkDao workDao;
	
	@Override
	public List<Map<String, Object>> listWorkMsg(Integer userId, String workStateName, Integer startPos,Integer pageSize) {
		return workDao.listWorkMsg(userId, workStateName,  startPos, pageSize);
	}
	/**
	 * 点击搜索按钮--多条件查询
	 */
	@Override
	public List<Map<String, Object>> getWorkMsg(Integer userId, String workStateName, String reimbursementTypeName,
			String userName, String moneyStart, String moneyEnd, String startTime, String endTime) {
		return workDao.getWorkMsg(userId, workStateName, reimbursementTypeName, userName, moneyStart, moneyEnd, startTime, endTime);
	}

	@Override
	public List<Map<String, Object>> getEssentialInformation(String reimbursementId) {
		// TODO Auto-generated method stub
		return workDao.getEssentialInformation(reimbursementId);
	}

	@Override
	public List<Map<String, Object>> getDetailInformation(String reimbursementId, Integer userId) {
		// TODO Auto-generated method stub
		return workDao.getDetailInformation(reimbursementId, userId);
	}

	@Override
	public List<Map<String, Object>> getDetailInformationBytravel(String reimbursementId, Integer userId) {
		// TODO Auto-generated method stub
		return workDao.getDetailInformationBytravel(reimbursementId, userId);
	}

	//
	@Override
	public Integer listWorkMsgCounts(Integer userId, String workStateName) {
		// TODO Auto-generated method stub
		return workDao.listWorkMsgCounts(userId, workStateName);
	}


}
